<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">
		<link href="themes/css/ui.common.css" rel="stylesheet"
			type="text/css" />
		<link href="themes/css/ui.child.css" rel="stylesheet"
			type="text/css" />
		<link href="themes/css/ui.tips.css" rel="stylesheet"
			type="text/css" />
		<link href="style/jquery_ui/jquery-ui-1.8.custom.css"
			rel="stylesheet" type="text/css" />
		<link id="skin_css" rel="stylesheet" type="text/css"
			href="themes/css/ui.c.blue.css"></link>
		<link rel="stylesheet"
			href="themes/default/pagination.css" type="text/css"></link>
		<script src="Scripts/jquery-1.4.1.min.js"
			type="text/javascript"></script>
		<script type="text/javascript"
			src="Scripts/jquery.json-2.2.min.js"></script>

		<script src="Scripts/jquery-ui-1.8.custom.min.js"
			type="text/javascript"></script>
		<script src="Scripts/ui.admincp.js"
			type="text/javascript" charset="UTF-8"></script>
	
		<STYLE type="text/css">
.editorArea {
	display: none;
}
tr{margin-bottom:10px;}
</STYLE>
		<script type="text/javascript">
				$(function(){
			
			
			$("#dialog").dialog("destroy"); 
			$("#dialog-form").dialog({
			autoOpen: false,
			height: 300,
			width: 460,
			modal: true,
			buttons: {
				Cancel: function() {
					$(this).dialog('close');
				}
			},
			close: function() {
				//allFields.val('').removeClass('ui-state-error');
			}
			});
			
			$('#TestButton')
			.click(function() { 
			    
			    //success:function(data){
			     $('#dialog-form').dialog('open');
			    //});		
			});
			    
		    });
			</script>
	<script type="text/javascript"
			src="Scripts/ui.dialogFormHelper.js"></script>
		<SCRIPT type="text/javascript">
			var searching = false;
				$(function(){
					$("#link_page_prev,#link_page_next").click(function(){
			    		var currentPage = $(this).attr("currentPage");
			    	 
			    		goToPage(currentPage);
			    	}); 
			    	
			    	$("#searchButton").click(function(){
						searching=true;
			    		goToPage(1);
			    	});
			    	
			    	initSearch();
			    	registeRowFuncButton();
				});
				
				function initSearch()
				{
				    $("#txt_noticeTitle").val();
				}
			 
				function goToPage(currentPage)
				{
				
				    var assessName = $("#txt_assessName").val();
				    var modelName = $("#txt_modelName").val(); 
				    var yearNo = $("#yearNo").val();
				    var monthNo = $("#monthNo").val(); 
		location.href = "assessInfo!queryByPassed.action?currpage="+currentPage+"&assessName="+assessName+"&modelName="+modelName + "&yearNo="+yearNo + "&monthNo="+monthNo;		
				}  
				
	        function toShowDetailHandler(e) {  
				var columns = e.data;
				var assessId = e.entityId;
				location.href = "assessInfo!queryDetail.action?assessId="+assessId;
				}
				
			</SCRIPT>

	<script type="text/javascript" src="Scripts/ui.clientDateHelper.js"></script></head>

	<body>
	 <div class="PageChild_Title">
        <img src=" themes/images/default/icons/archives.png" class="PageChild_Tbtnpic" />
        <span class="PageChild_separate"></span><span class="PageChild_TbtnText">
        <h2>
        	公布考核信息 
        </h2>
        </span><span class="PageChild_separate"></span>
        <div id="marker" class="red-tips">
        </div>
        <div class="clear">
        </div>
    </div>
		<div class="PageChild_Where">
			<table style="height:60px" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td class="mtd">
						&nbsp;考核信息名称:<s:textfield name="assessName" maxlength="20"
							id="txt_assessName" theme="simple" />
					</td>
					<td  class="mtd">
						&nbsp;考核模版名称:<s:textfield name="modelName" maxlength="20"
							id="txt_modelName" theme="simple" />
					</td>
					<td  class="mtd">
						&nbsp;考核月份:<s:select id="monthNo" theme="simple" list="listMonth"  label="abc" headerKey="-10" headerValue="--按考核月份查看--" value="monthNo"></s:select>
					</td>
					<td  class="mtd">
						&nbsp;考核年份:<s:select id="yearNo" theme="simple" list="listYear"  label="abc"   headerKey="-10" headerValue="--按考核年份查看--" value="yearNo"></s:select>
					</td>
					<td>
						&nbsp;<input type="submit" name="searchButton" class="o-btn SubmitButton" value="搜索"
							id="searchButton" />
					</td>
				</tr>
				<tr>
					<td colspan="5">
						&nbsp;<span id="lbl_list_count">共有 <b>${count}</b> 条审核通过的考核信息。</span>
					</td>
				</tr>
			</table>
		</div>
		<div class="PageChild_List">
			<table width="100%" border="0" cellspacing="0"
				style="text-align: left">
				<tbody class="PageChild_List_head">
					<tr>
						<td width="16">
							<img src="<%=basePath%>/themes/images/default/icons/pcde_314.png"
								width="16" height="16" />
						</td>					
						<td>
							考核信息名称
						</td>
						<td>
							考核模版名称
						</td>
						<td>
							考核信息年份
						</td>
						<td>
							考核信息月份
						</td>
						<td class="td_width40" style="width:80">
							考核信息详情
						</td>
					</tr>
				</tbody>
				<tbody class="PageChild_List_main" style="text-align: left">
					<!-- 会议通知列表开始 -->
					<s:if test="list!=null&&list.size!=0">
					<s:iterator value="list" var="item">
						<tr class='td_no_bord'>
							<td class="td_width25">
								&nbsp;
							</td>
							<td>
								<span>${item.assessName}&nbsp;</span>
							</td>
							<td>
								<span> ${item.assessModel.modelName}&nbsp; </span>
							</td>
							<td>
								<span> ${item.yearNo}&nbsp; </span>
							</td>
							<td>
								<span> ${item.monthNo}&nbsp; </span>
							</td>
							<td>
								<a class="ui-link-viewDetail-button"
									entityId="${item.assessId}" id="sender_${item.assessId}"
									href="javascript:void(0);" state="0"
									entityId="${item.assessId}"> <img
										src="<%=basePath%>/themes/icons/info.png" title="单击查看考核信息详情" />
								</a> &nbsp;
							</td>
						</tr>
					</s:iterator>
					</s:if><s:else>
					<tr>
					<td colspan="6">无记录</td>
					</tr>
					</s:else>
					<!-- 会议通知列表结束 -->

				</tbody>
			</table>
			<div id="divTopPageNavi" class="list_r_title_text3">

				<!--分页导航开始-->
				<s:if test="currpage<=1">
					<span class='list_r_title_text3a'> <img
							src="<%=basePath%>/themes/images/default/page_up_gray.gif"></img>
					</span>

				</s:if>
				<s:else>
					<span class='list_r_title_text3a'> <a name="link_page_prev"
						id="link_page_prev" href="javascript:void(0);"
						currentPage="${currpage-1}"> <img
								src="<%=basePath%>/themes/images/default/page_up.gif"></img> </a> </span>
				</s:else>
				<span class='list_r_title_text3b'> 第${currpage
					}页/共${totalpage }页 </span>
				<s:if test="currpage>=totalpage">
					<span class='list_r_title_text3a'> <img
							src="<%=basePath%>/themes/images/default/page_down_gray.gif"></img>
					</span>
				</s:if>
				<s:else>
					<span class='list_r_title_text3a'> <a name="link_page_next"
						id="link_page_next" href="javascript:void(0);"
						currentPage="${currpage+1 }"> <img
								src="<%=basePath%>/themes/images/default/page_down.gif"></img> </a>
					</span>
				</s:else>
				<span id="goToPageTextArea"><input type="text"
						class="easyui-numberbox" id="goPageNum" max="${totalpage}" min="1" />
					<input type="button" id="turnToPageButton" value="GO" />
				</span>
				<!--分页导航结束-->
			</div>
		</div>

	</body>
</html>
